package com.neusoft.pojo;

public class Cart {
	private int cid;//购物ID
	private int pid;//产品ID
	private int pquantity;//产品数量
	private int uid;//用户ID
	 
	private Product product; //产品对象
	
	private int totalMoney;//总金额
	
	public Cart() {
	}

	
	@Override
	public String toString() {
		return "Cart [cid=" + cid + ", pid=" + pid + ", pquantity=" + pquantity + ", uid=" + uid + ", product="
				+ product + ", totalMoney=" + totalMoney + "]";
	}



	public Cart(int cid, int pid, int pquantity, int uid, Product product, int totalMoney) {
		super();
		this.cid = cid;
		this.pid = pid;
		this.pquantity = pquantity;
		this.uid = uid;
		this.product = product;
		this.totalMoney = totalMoney;
	}



	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getPquantity() {
		return pquantity;
	}

	public void setPquantity(int pquantity) {
		this.pquantity = pquantity;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	

	public int getTotalMoney() {
		return totalMoney;
	}

	public void setTotalMoney(int totalMoney) {
		this.totalMoney = totalMoney;
	}

	

}
